<template>
  <el-table :data="detail" style="width: 100%">
        <!-- <el-table-column prop="name" label="题目"></el-table-column> -->
        <el-table-column prop="avgPoint" label="选择"></el-table-column>
        <el-table-column prop="maxPoint" label="答案"></el-table-column>
        <el-table-column prop="minPoint" label="解析"></el-table-column>
      </el-table>
</template>



<script>
export default {
  data() {
    return {
        detail: [{avgPoint:'',maxPoint:'',minPoint:''}]
    };
  },
  created() {
      this.getXinxi()
  },
  methods: {
    getXinxi() {
      this.postRequest(`/back/practicerecords/queryExamResult?examId=${this.$route.query.id}`).then((res) => {
      // this.postRequest(`/back/practicerecords/queryExamResult?examId=7`).then((res) => {
          //console.log(res)
          // this.detail = res.data.data
          this.detail[0].avgPoint = res.data.data.avgPoint
          this.detail[0].maxPoint = res.data.data.maxPoint
          this.detail[0].minPoint = res.data.data.minPoint
          //console.log(this.detail)
      });
    },
  },
};
</script>


<style scoped>
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 178px;
  height: 178px;
  display: block;
}
</style>